﻿@model Gfw.Web.Models.SystemUser.NewUserModel
@{
    ViewBag.Title = "创建帐户";
    Layout = null;
}
<script src="~/Scripts/jquery-1.6.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
@using (Ajax.BeginForm("Create", "SystemUser", null, Gfw.Web.Common.ViewHelper.AjaxPost))
{
    <ul>
        <li>@Html.LabelFor(model => model.LoginName)</li>
        <li>@Html.EditorFor(model => model.LoginName)
            @Html.ValidationMessageFor(model => model.LoginName)</li>
        <li>
            @Html.LabelFor(model => model.Password)
        </li>
        <li>
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </li>
        <li>
            @Html.LabelFor(model => model.SecondPassword)
        </li>
        <li>
            @Html.EditorFor(model => model.SecondPassword)
            @Html.ValidationMessageFor(model => model.SecondPassword)
        </li>
        <li>
            @Html.LabelFor(model => model.Name)
        </li>
        <li>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>
        <li>
            @Html.LabelFor(model => model.Tel)
        </li>
        <li>
            @Html.EditorFor(model => model.Tel)
            @Html.ValidationMessageFor(model => model.Tel)
        </li>
        <li>
            @Html.LabelFor(model => model.Address)
        </li>
        <li>
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </li>
        <li>
            @Html.LabelFor(model => model.Qq)
        </li>
        <li>
            @Html.EditorFor(model => model.Qq)
            @Html.ValidationMessageFor(model => model.Qq)
        </li>
        <li>
            @Html.LabelFor(model => model.Email)
        </li>
        <li>
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </li>
        <li>
            @Html.LabelFor(model => model.IdCard)
        </li>
        <li>
            @Html.EditorFor(model => model.IdCard)
            @Html.ValidationMessageFor(model => model.IdCard)
        </li>
        <li>
            @Html.LabelFor(model => model.IsLock)
        </li>
        <li>
            @Html.EditorFor(model => model.IsLock)
            @Html.ValidationMessageFor(model => model.IsLock)
        </li>
    </ul>
    @Html.ValidationSummary(true)

    <div class="button">
        @Ajax.ActionLink("返回", "Index", new { page = 1 }, Gfw.Web.Common.ViewHelper.AjaxGet)
        <input type="submit" value="提交" onclick="this.disabled = true; this.form.submit();" />
    </div>
}
